package com.application.race.manage.player.effect;
 	
import com.application.race.manage.player.Player;

public class Effect
	{
	     public static final byte EFFECT_TYPE_UNDER_ATK=0;
	     public static final byte EFFECT_TYPE_UNDER_FATAL_ATK_L1=1;
	     public static final byte EFFECT_TYPE_UNDER_FATAL_ATK_L2=2;
	     public static final byte EFFECT_TYPE_UNDER_FATAL_ATK_L3=3;
	     public static final byte EFFECT_TYPE_CAROTIC=4;
	     public static final byte EFFECT_TYPE_BURNING=5;
	     public static final byte EFFECT_TYPE_LEAKING=6;
	     public static final byte EFFECT_TYPE_HURTING=7;
	     public static final byte EFFECT_TYPE_SKID=8;

	     
	     public static final byte EFFECT_TYPE_HEALING=9;
	     public static final byte EFFECT_TYPE_STRONG=10;
	     public static final byte EFFECT_TYPE_BLOODING=11;
	     public static final byte EFFECT_TYPE_RESIST=12;
	     public static final byte EFFECT_TYPE_DODGE=13;
	     public static final byte EFFECT_TYPE_STRICK=14;
	     public static final byte EFFECT_TYPE_JUMP=15;
	     public static final byte EFFECT_TYPE_HIDE=16;
	     public static final byte EFFECT_TYPE_REPAIR=17;
	     public static final byte EFFECT_TYPE_FOCUS=18;

	     public static final byte EFFECT_TYPE_BLAST=19;	 
	     
	     
	     public static final int EFFECT_TYPE_REMOVE=99;	     
         public int receiver;
         public int initiator;
         public long startTime;
         public byte effectType;
         public int effectId;
         public int actionid=0;
         
         public boolean isCrashEft(){
        	 switch(effectType){
        	 	case EFFECT_TYPE_UNDER_ATK:
        	 	case EFFECT_TYPE_UNDER_FATAL_ATK_L1:
        	 	case EFFECT_TYPE_UNDER_FATAL_ATK_L2:
        	 	case EFFECT_TYPE_UNDER_FATAL_ATK_L3:
        	 	   return true;
        	 	
        	 }
        	 return false;
         }
         
         public boolean isCaroticEft(){
        	 if(effectType==this.EFFECT_TYPE_CAROTIC)return true;
        	 return false;
         }
         public boolean isRemoveEft(){
        	 if(effectType==this.EFFECT_TYPE_REMOVE)return true;
        	 return false;
         }
         public boolean isResistEft(){
        	 if(effectType==this.EFFECT_TYPE_RESIST)return true;
        	 return false;
         }
         public boolean isDodgeEft(){
        	 if(effectType==this.EFFECT_TYPE_DODGE)return true;
        	 return false;
         }
         public boolean update(Player p){
        	 return false;
         }
	}
